package com.components
{
	import mx.controls.Image;
	public class BorderImage extends Image     
	{   
		public var isSelect:Boolean;
	 	public function BorderImage()     
		{     
		    super();     
		}     
		         
		override protected function updateDisplayList(w:Number, h:Number):void{     
		    super.updateDisplayList(w,h);
			if(!isSelect){
				graphics.clear();
				return;  
			}
			graphics.lineStyle(2,13504013,1,false);     
			graphics.drawRect(-1,-1,width+2,height+2);             
		}
		public function setSelect(s:Boolean):void{
			isSelect = s;
			updateDisplayList(width,height);
		}
	}
}